package com.ltmall.api.manager;

import com.ltmall.api.bean.AreaPostage;
import com.ltmall.api.bean.LogisticPattern;
import com.ltmall.api.bean.LogisticPatternExc;
import com.ltmall.api.bean.OrderLogistic;

import java.util.List;

public interface LogisticManager {
	// 获取物流其他区域模板
	public List<LogisticPatternExc> getPatternExc(int patternID);
	//获取物流主模板
	public LogisticPattern getPattern(int patternID);
	//插入订单物流
	public boolean addOrderLogistic(OrderLogistic oLogistic);
	//获取指定区域的物流模版
	public LogisticPatternExc getPatternExc(int patternID, String address, int type);
	//添加订单ID
	public boolean setOrderID(int orderID, int logisticID);
	//获取指定区域的物流模版
	public LogisticPatternExc getPatternExc(int patternID, String province, String city);
	//物流类型
	public int logiType(int goodsID);
	//获取邮费
	public AreaPostage getPostage(int patternID, String province, String city);
	//获取邮费
	public AreaPostage getNoPostage(int patternID, String province, String city);
	//获取全国的邮费
	public AreaPostage getNationPostage(int patternID);
}
